﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNet.Random.Date
{
    /// <summary>
    /// 当前年随机类，继承于YearRandService
    /// </summary>
    public class CurrenYearRandService : YearRandService
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CurrenYearRandService" /> class.
        /// </summary>
        public CurrenYearRandService()
        {
            var year = System.DateTime.Now.Year;
            this.Serial.Clear();
            this.Serial.Add(year);
        }
    }
}
